'use strict';

angular.module('hackathonApp')
  .controller('TestCtrl', function ($scope) {
     
     $scope.queryString = '';
     

     $scope.doQuery = function() {		  
	  $scope.DNB.Api.get($scope.queryString).done(function (response){
	       $scope.output = JSON.stringify(response, undefined, 2);
	       $scope.$apply();
	   })
     }
	 
     
     

  });
